package com.liqi.display.entity;

import lombok.Data;

@Data
public class Statistics {
    /** 返回代码 */
    private int resultCode;
    /** 返回信息 */
    private String resultMessage;
    /** 返回对象数据 */
    private Object data;
    /** 返回当前服务器时间 */
    private long dateTime = System.currentTimeMillis();


    /**
     * 设置返回值
     * @param resultCode 返回状态
     * @param resultMessage 返回状态中文提示
     * @param data 返回对象
     */
    public void setMapResult(int resultCode,String resultMessage,Object data){
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
        this.data = data;
    }

    public void setMapResult(int resultCode,String resultMessage){
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }

    public void setMapResult(int resultCode,Object data){
        this.resultCode = resultCode;
        this.data = data;
    }



    public Statistics() {
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Examine{" +
                "resultCode=" + resultCode +
                ", resultMessage='" + resultMessage + '\'' +
                ", data=" + data +
                ", dateTime=" + dateTime +
                '}';
    }
}
